package com.zy.edu.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.zy.edu.bean.Classinfo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.edu.bean.InputParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-13
 */
public interface ClassinfoDao extends BaseMapper<Classinfo> {

    /**
     * @Author: HuangHaiShui
     * @Description:根据用户id查询所属的班级
     *                班级的状态为 1
     * @Date: 15:52 2021/7/14
     * @param userId:
     * @return: List<Classinfo>
     **/
    public List<Classinfo> findByUserId(String userId);


    public List<Classinfo> listPage(Pagination pagination,
                                    @Param("classinfo")Classinfo classinfo);

    public List<Classinfo> listPageByTeachId(Pagination pagination,
                                    @Param("classinfo")Classinfo classinfo);


    public  void deleByJruisId(InputParam inputParam);
}
